package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwTeacherInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 教师信息业务对象 jw_teacher_info
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwTeacherInfo.class, reverseConvertGenerate = false)
public class JwTeacherInfoBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 教师编号
     */
    @NotBlank(message = "教师编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 教师名称
     */
    @NotBlank(message = "教师名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long age;

    /**
     * 性别
     */
    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 电话号码
     */
    @NotBlank(message = "电话号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 生日
     */
    @NotNull(message = "生日不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date birthday;

    /**
     * 所处办公室编号
     */
    @NotBlank(message = "所处办公室编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String officeId;


}
